package com.hzj.service;

import com.hzj.pojo.Patient;
import com.hzj.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Aisling
 * @date 2021-05-13 9:52
 */

@Service
@FeignClient(name = "PROVIDER-USER-8001",contextId = "PatientService")
public interface PatientService {

    @PostMapping("/patient/auth/get/{id}")
    public Patient getById(@PathVariable(value = "id") Integer id);

    @PostMapping("/patient/authve")
    public Result save(@RequestBody Patient patient);

    @PostMapping("/patient/auth/update")
    public Result updateById(@RequestBody Patient patient);

    @PostMapping("/patient/auth/remove/{id}")
    public Result removeById(@PathVariable(value = "id") Integer id);


}
